

using AutoMapper;
using DualControl.RiskPoints;

namespace DualControl.RiskPoints.Dtos.CustomMapper
{

    /// <summary>
    /// 配置RiskPoint的AutoMapper
    ///</summary>
    internal static class CustomerRiskPointMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {

            configuration.CreateMap<RiskPoint, RiskPointListDto>()
                .ForMember(dest => dest.AccidentTypesForView, opt =>
                {
                    opt.Ignore();
                });
            configuration.CreateMap<RiskPointEditDto, RiskPoint>();
             



            //// custom codes

            //// custom codes end

        }
    }
}
